<div class="admin-content">

    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">广告</strong> / <small>add</small></div>
    </div>

    <div class="am-tabs am-margin" data-am-tabs>
        <ul class="am-tabs-nav am-nav am-nav-tabs">
            <li class="am-active"><a data-toggle="tab">基本信息</a></li>
            <li><a data-toggle="tab">文本 选项</a></li>
            <li><a data-toggle="tab">图片 选项</a></li>
        </ul>

        <div class="am-tabs-bd">
            <div class="am-tab-panel am-fade am-in am-active" id="tab1">

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">所属 类别</div>
                        <div class="am-u-sm-8 am-u-md-10">
                            <select name="singleSelect" id="singleSelect" ng-model="selected" style="width: 175px">
                                <option value="0" >文本...</option>
                                <option value="1">图片.....</option>
                                <option value="2">二维码（未开放）</option>
                            </select>
                        </div>
                    </div>
                <form id="myform" >
                    <div class="am-g am-margin-top" >
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            广告 名称
                        </div>
                        <div class="am-u-sm-8 am-u-md-10" >
                            <input style="width: 175px" type="text" id="aName" name="ad.aName"
                                   ng-model="ad.aName" required>
                        </div>
                    </div>

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            广告 地址
                        </div>
                        <div class="am-u-sm-8 am-u-md-10 am-u-end col-end">
                            <textarea rows="5" style="width: 175px" id="ad.aAddr" name="ad.aAddr" ng-model="ad.aAddr"
                                      required></textarea>
                        </div>
                    </div>

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            广告 拥者
                        </div>
                        <div class="am-u-sm-8 am-u-md-10">
                            <input type="text" style="width: 175px" class="am-input-sm" id="ad.aManager"
                                   name="ad.aManager" ng-model="ad.aManager" required>
                        </div>
                    </div>

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            联系 方式
                        </div>
                        <div class="am-u-sm-8 am-u-md-10">
                            <input type="text" style="width: 175px" class="am-input-sm" id="ad.aManagertel"
                                   name="ad.aManagertel" ng-model="ad.aManagertel" required>
                        </div>
                    </div>
                    <div class="am-margin">
                        <button type="submit" class="am-btn am-btn-primary am-btn-xs" ng-click="check()">检查数据</button>
                    </div>
                </form>
            </div>

            <div class="am-tab-panel am-fade" id="tab2">
                <form class="am-form">
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            文本 简介
                        </div>
                        <div class="am-u-sm-8 am-u-md-10">
                            <input type="text" style="width: 250px" class="am-input-sm" name="ad.aHometxt"
                                   ng-model="ad.aHometxt" required>
                        </div>
                    </div>


                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right admin-form-text">
                            文本 详细
                        </div>
                        <div class="am-u-sm-8 am-u-md-10">
                            <textarea rows="10" style="width: 250px" placeholder="请使用富文本编辑插件" name="ad.aDetailtxt"
                                      ng-model="ad.aDetailtxt" required></textarea>
                        </div>
                    </div>

                </form>
            </div>

            <div class="am-tab-panel am-fade" id="tab3">
                <form class="am-form">
                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            选择 首页图片
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end">
                            <input type="file" file-model="myFile"/>
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end">
                            <button class="am-btn am-btn-primary am-btn-xs" ng-click="uploadFile()">上传</button>
                        </div>
                    </div>
                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            选择 详细图片
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end">
                            <input type="file" file-model="myFile1"/>
                        </div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end">
                            <button class="am-btn am-btn-primary am-btn-xs" ng-click="uploadFile1()">上传</button>
                        </div>
                    </div>


                </form>
            </div>

        </div>
    </div>

    <div class="am-margin">
        <button type="button" class="am-btn am-btn-primary am-btn-xs" ng-click="submit()">提交保存</button>
    </div>
</div>
<!-- content end -->

